//
//  DescriptionViewController.m
//
//  Created by 周成龙
//

#import "DescriptionViewController.h"

@interface DescriptionModel : NSObject
@property (nonatomic, copy) NSString *firstName;
@property (nonatomic, copy) NSString *lastName;
- (instancetype)initWithFirstName:(NSString *)firstName lastName:(NSString *)lastName;
@end

@implementation DescriptionModel
- (instancetype)initWithFirstName:(NSString *)firstName lastName:(NSString *)lastName {
    if (self = [super init]) {
        _firstName = firstName;
        _lastName = lastName;
    }
    return self;
}
- (NSString *)description {
    return [NSString stringWithFormat:@"@{\"firstName\" : %@, \"lastName\": %@}", self.firstName, self.lastName];
}
- (NSString *)debugDescription {
    return [NSString stringWithFormat:@"<%@: %p> @{\"firstName\" : %@, \"lastName\": %@}", [self class], self, self.firstName, self.lastName];
}
@end


@interface DescriptionViewController ()

@end

@implementation DescriptionViewController
#pragma mark - LifeCycle
- (void)viewDidLoad {
    [super viewDidLoad];
    
    DescriptionModel *d = [[DescriptionModel alloc] initWithFirstName:@"Bob" lastName:@"Smith"];
    NSLog(@"%@", d);
}


@end
